package com.hyy.backend.dao;

import com.hyy.backend.dto.CommentDTO;
import com.hyy.backend.entity.Comment;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface CommentMapper {
    List<Comment> selectByPostId(@Param("postId") Integer postId);
    void insertComment(Comment comment);
    void deleteComment(@Param("commentId") Integer commentId);
    List<CommentDTO> selectWithUserByPostId(@Param("postId") Integer postId);
    int countByPostId(Integer postId);
    void deleteByKnowledgeId(@Param("postId") Integer postId);


}
